<span id="${uuid}"></span>

<div data-id="content" class="box_tc_s">
    <form data-id="form-attendance-add-info" method="post"
          action="${pageContext.request.contextPath}/app/api/attendance/add">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90"><span class="nes-tip">*</span>考勤事由：</td>
                <td class="hydra-right">
                    <select data-id="reason" name="reason.id" data-options="required:true,editable: false"
                            class="easyui-validatebox hydra-input-width"></select>
                </td>
            </tr>
            <%--<tr class="hydra-tr-bg" data-id="pCodeItem" style="display: none">--%>
                <%--<td class="hydra-left width90"><span class="nes-tip">*</span>项目代号：</td>--%>
                <%--<td class="hydra-right">--%>
                    <%--<input type="text" name="projectCode" data-id="projectCode"--%>
                           <%--class="easyui-validatebox hydra-input-width"--%>
                           <%--data-options="required:true,validType:['normalChar','length[0,20]']"--%>
                           <%--placeholder="项目代号.." />--%>
                <%--</td>--%>
            <%--</tr>--%>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90"><span class="nes-tip">*</span>人员：</td>
                <td class="hydra-right">
                    <input type="hidden" name="applyUser.id" value="${loginUser.id}" data-id="loginUserId">
                    <div data-id="select1">
                        <select data-id="applyUser1" name="applyUser.id" data-options="required:true,editable: false"
                                class="easyui-validatebox hydra-input-width"></select>
                        </div>
                    <div data-id="select2">
                        <select data-id="applyUser2" name="applyUser.id" data-options="required:true,editable: false"
                                class="easyui-validatebox hydra-input-width"></select>
                    </div>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left width90"><span class="nes-tip">*</span>开始时间：</td>
                <td class="hydra-right">
                    <div data-id="hourBegin">
                        <input type="text" class="hydra-input-width" data-id="beginTime"
                               name="beginTime" data-options="required:true,editable: false"/>
                    </div>
                    <div data-id="dayBegin" style="display: none">
                        <input type="text" class="hydra-input-width" data-id="beginTime1" style="width: 300px"
                               value='<fmt:formatDate value="${now}" pattern="yyyy-MM-dd"/>'
                               name="beginTime1" data-options="required:true,editable: false"/>
                        <select data-id="apm"  name="apm" class="hydra-input-width" style="width: 100px">
                            <option value="am">上午</option>
                            <option value="pm">下午</option>
                        </select>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="hydra-left width90"><span class="nes-tip">*</span>备注：</td>
                <td class="hydra-right"><textarea
                        data-id="remark" name="remark"
                        class="easyui-validatebox hydra-textarea hydra-input-width" draggable="false"
                        data-options="required:true,validType:['normalChar','length[0,200]']"
                        placeholder="备注.."></textarea></td>
            </tr>
            <tr>
                <td class="hydra-left width90">
                    <input type="checkbox" data-id="isReplace" name="isReplace" value="1"/>
                </td>
                <td class="hydra-right">代为填写</td>
            </tr>
            <tr>
                <td class="hydra-left width90"></td>
                <td class="hydra-right">
                    <span data-id="prompt" style="color: red"></span>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    seajs.use(["apps/attendance/selfList"], function (page) {
        page.add("${pageContext.request.contextPath}", "${uuid}", {
            loginUserId: "${loginUser.id}"
        });
    });
</script>
